﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin/Admin.Master" Inherits="System.Web.Mvc.ViewPage<ShopOnline.Models.Press>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="w_container m10-tb  fl">
        <div class="w_container fl">
            <div class="titleheader bold fl">
                Administration Session
            </div>
            <div class="titleheader fr">
                Back to <a class="orange" href="/Admin/Index">Cpanel</a></div>
            <div class="w_container titleheader fl align-l">
                <div class="fl">
                    Cpanel |
                </div>
                <div class="orange fl">
                    Xóa bài viết
                </div>
            </div>
        </div>
       <div class="w_container m10-tb  fl">
            <div class="sub_container fl">
                <form method="post" enctype="multipart/form-data" id="formID" class="formular">
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                        Tiêu đề
                    </div>
                    <div class="input-item fl">
                       <%= Html.Encode(Model.title) %>
                    </div>
                </div>
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                        Sơ lược
                    </div>
                    <div class="input-item fl">
                         <%= Html.Encode(Model.description) %>
                    </div>
                </div>
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                        Nội dung
                    </div>
                    <div class="input-item fl">
                          <%= Model.body %>
                    </div>
                </div>
               <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                      Hình ảnh đại diện
                    </div>
                    <div class="input-item fl">
                      <img src="../../Content/PressImages/<%= Model.imagePath %>" width="100px" height="100px" />
                    </div>
                </div> 
                
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                        Ngày tạo 
                    </div>
                    <div class="input-item fl">
                      <%= Html.Encode(String.Format("{0:g}", Model.dateCreate)) %>
                    </div>
                </div>
                
                </form>
            </div>
        </div>
    </div>
        <p>

        <%= Html.ActionLink("Edit", "Edit", new { id = Model.pressId }, new { @class = "ui-state-default ui-corner-all button fl" })%> |
        <%= Html.ActionLink("Back to List", "AdminListPress", "Press", new { @class = "ui-state-default ui-corner-all button fl" })%>
    </p>
</asp:Content>

